3.2.42 \(\int \frac {(e \sin (c+d x))^m}{\sqrt {a+a \sec (c+d x)}} \, dx\) [142]

Optimal. Leaf size=115 \[ -\frac {2 e F_1\left (\frac {3}{2};\frac {1-m}{2},\frac {2-m}{2};\frac {5}{2};\cos (c+d x),-\cos (c+d x)\right ) (1-\cos (c+d x))^{\frac {1-m}{2}} \cos (c+d x) (1+\cos (c+d x))^{1-\frac {m}{2}} (e \sin (c+d x))^{-1+m}}{3 d \sqrt {a+a \sec (c+d x)}} \]

[Out]

-2/3*e*AppellF1(3/2,1-1/2*m,1/2-1/2*m,5/2,-cos(d*x+c),cos(d*x+c))*(1-cos(d*x+c))^(1/2-1/2*m)*cos(d*x+c)*(1+cos
(d*x+c))^(1-1/2*m)*(e*sin(d*x+c))^(-1+m)/d/(a+a*sec(d*x+c))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.22, antiderivative size = 115, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3961, 2965, 140, 138} \begin {gather*} -\frac {2 e \cos (c+d x) (1-\cos (c+d x))^{\frac {1-m}{2}} (\cos (c+d x)+1)^{1-\frac {m}{2}} F_1\left (\frac {3}{2};\frac {1-m}{2},\frac {2-m}{2};\frac {5}{2};\cos (c+d x),-\cos (c+d x)\right ) (e \sin (c+d x))^{m-1}}{3 d \sqrt {a \sec (c+d x)+a}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(e*Sin[c + d*x])^m/Sqrt[a + a*Sec[c + d*x]],x]

[Out]

(-2*e*AppellF1[3/2, (1 - m)/2, (2 - m)/2, 5/2, Cos[c + d*x], -Cos[c + d*x]]*(1 - Cos[c + d*x])^((1 - m)/2)*Cos
[c + d*x]*(1 + Cos[c + d*x])^(1 - m/2)*(e*Sin[c + d*x])^(-1 + m))/(3*d*Sqrt[a + a*Sec[c + d*x]])

Rule 138

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_)*((e_) + (f_.)*(x_))^(p_), x_Symbol] :> Simp[c^n*e^p*((b*x)^(m +
 1)/(b*(m + 1)))*AppellF1[m + 1, -n, -p, m + 2, (-d)*(x/c), (-f)*(x/e)], x] /; FreeQ[{b, c, d, e, f, m, n, p},
 x] &&  !IntegerQ[m] &&  !IntegerQ[n] && GtQ[c, 0] && (IntegerQ[p] || GtQ[e, 0])

Rule 140

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_)*((e_) + (f_.)*(x_))^(p_), x_Symbol] :> Dist[c^IntPart[n]*((c +
d*x)^FracPart[n]/(1 + d*(x/c))^FracPart[n]), Int[(b*x)^m*(1 + d*(x/c))^n*(e + f*x)^p, x], x] /; FreeQ[{b, c, d
, e, f, m, n, p}, x] &&  !IntegerQ[m] &&  !IntegerQ[n] &&  !GtQ[c, 0]

Rule 2965

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((a_) + (b_.)*sin[(e_.) + (f_.)*
(x_)])^(m_), x_Symbol] :> Dist[g*((g*Cos[e + f*x])^(p - 1)/(f*(a + b*Sin[e + f*x])^((p - 1)/2)*(a - b*Sin[e +
f*x])^((p - 1)/2))), Subst[Int[(d*x)^n*(a + b*x)^(m + (p - 1)/2)*(a - b*x)^((p - 1)/2), x], x, Sin[e + f*x]],
x] /; FreeQ[{a, b, d, e, f, m, n, p}, x] && EqQ[a^2 - b^2, 0] &&  !IntegerQ[m]

Rule 3961

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_), x_Symbol] :> Dist[Sin[e
 + f*x]^FracPart[m]*((a + b*Csc[e + f*x])^FracPart[m]/(b + a*Sin[e + f*x])^FracPart[m]), Int[(g*Cos[e + f*x])^
p*((b + a*Sin[e + f*x])^m/Sin[e + f*x]^m), x], x] /; FreeQ[{a, b, e, f, g, m, p}, x] && (EqQ[a^2 - b^2, 0] ||
IntegersQ[2*m, p])

Rubi steps

\begin {align*} \int \frac {(e \sin (c+d x))^m}{\sqrt {a+a \sec (c+d x)}} \, dx &=\frac {\sqrt {-a-a \cos (c+d x)} \int \frac {\sqrt {-\cos (c+d x)} (e \sin (c+d x))^m}{\sqrt {-a-a \cos (c+d x)}} \, dx}{\sqrt {-\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}\\ &=-\frac {\left (e (-a-a \cos (c+d x))^{\frac {1}{2}+\frac {1-m}{2}} (-a+a \cos (c+d x))^{\frac {1-m}{2}} (e \sin (c+d x))^{-1+m}\right ) \text {Subst}\left (\int \sqrt {-x} (-a-a x)^{-\frac {1}{2}+\frac {1}{2} (-1+m)} (-a+a x)^{\frac {1}{2} (-1+m)} \, dx,x,\cos (c+d x)\right )}{d \sqrt {-\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}\\ &=-\frac {\left (e (1+\cos (c+d x))^{1-\frac {m}{2}} (-a-a \cos (c+d x))^{-\frac {1}{2}+\frac {1-m}{2}+\frac {m}{2}} (-a+a \cos (c+d x))^{\frac {1-m}{2}} (e \sin (c+d x))^{-1+m}\right ) \text {Subst}\left (\int \sqrt {-x} (1+x)^{-\frac {1}{2}+\frac {1}{2} (-1+m)} (-a+a x)^{\frac {1}{2} (-1+m)} \, dx,x,\cos (c+d x)\right )}{d \sqrt {-\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}\\ &=-\frac {\left (e (1-\cos (c+d x))^{\frac {1}{2}-\frac {m}{2}} (1+\cos (c+d x))^{1-\frac {m}{2}} (-a-a \cos (c+d x))^{-\frac {1}{2}+\frac {1-m}{2}+\frac {m}{2}} (-a+a \cos (c+d x))^{-\frac {1}{2}+\frac {1-m}{2}+\frac {m}{2}} (e \sin (c+d x))^{-1+m}\right ) \text {Subst}\left (\int (1-x)^{\frac {1}{2} (-1+m)} \sqrt {-x} (1+x)^{-\frac {1}{2}+\frac {1}{2} (-1+m)} \, dx,x,\cos (c+d x)\right )}{d \sqrt {-\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}\\ &=-\frac {2 e F_1\left (\frac {3}{2};\frac {1-m}{2},\frac {2-m}{2};\frac {5}{2};\cos (c+d x),-\cos (c+d x)\right ) (1-\cos (c+d x))^{\frac {1-m}{2}} \cos (c+d x) (1+\cos (c+d x))^{1-\frac {m}{2}} (e \sin (c+d x))^{-1+m}}{3 d \sqrt {a+a \sec (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(277\) vs. \(2(115)=230\).
time = 1.37, size = 277, normalized size = 2.41 \begin {gather*} \frac {4 (3+m) F_1\left (\frac {1+m}{2};-\frac {1}{2},1+m;\frac {3+m}{2};\tan ^2\left (\frac {1}{2} (c+d x)\right ),-\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) \cos ^3\left (\frac {1}{2} (c+d x)\right ) \sin \left (\frac {1}{2} (c+d x)\right ) (e \sin (c+d x))^m}{d (1+m) \left (\left (2 (1+m) F_1\left (\frac {3+m}{2};-\frac {1}{2},2+m;\frac {5+m}{2};\tan ^2\left (\frac {1}{2} (c+d x)\right ),-\tan ^2\left (\frac {1}{2} (c+d x)\right )\right )+F_1\left (\frac {3+m}{2};\frac {1}{2},1+m;\frac {5+m}{2};\tan ^2\left (\frac {1}{2} (c+d x)\right ),-\tan ^2\left (\frac {1}{2} (c+d x)\right )\right )\right ) (-1+\cos (c+d x))+(3+m) F_1\left (\frac {1+m}{2};-\frac {1}{2},1+m;\frac {3+m}{2};\tan ^2\left (\frac {1}{2} (c+d x)\right ),-\tan ^2\left (\frac {1}{2} (c+d x)\right )\right ) (1+\cos (c+d x))\right ) \sqrt {a (1+\sec (c+d x))}} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

Integrate[(e*Sin[c + d*x])^m/Sqrt[a + a*Sec[c + d*x]],x]

[Out]

(4*(3 + m)*AppellF1[(1 + m)/2, -1/2, 1 + m, (3 + m)/2, Tan[(c + d*x)/2]^2, -Tan[(c + d*x)/2]^2]*Cos[(c + d*x)/
2]^3*Sin[(c + d*x)/2]*(e*Sin[c + d*x])^m)/(d*(1 + m)*((2*(1 + m)*AppellF1[(3 + m)/2, -1/2, 2 + m, (5 + m)/2, T
an[(c + d*x)/2]^2, -Tan[(c + d*x)/2]^2] + AppellF1[(3 + m)/2, 1/2, 1 + m, (5 + m)/2, Tan[(c + d*x)/2]^2, -Tan[
(c + d*x)/2]^2])*(-1 + Cos[c + d*x]) + (3 + m)*AppellF1[(1 + m)/2, -1/2, 1 + m, (3 + m)/2, Tan[(c + d*x)/2]^2,
 -Tan[(c + d*x)/2]^2]*(1 + Cos[c + d*x]))*Sqrt[a*(1 + Sec[c + d*x])])

________________________________________________________________________________________

Maple [F]
time = 0.10, size = 0, normalized size = 0.00 \[\int \frac {\left (e \sin \left (d x +c \right )\right )^{m}}{\sqrt {a +a \sec \left (d x +c \right )}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*sin(d*x+c))^m/(a+a*sec(d*x+c))^(1/2),x)

[Out]

int((e*sin(d*x+c))^m/(a+a*sec(d*x+c))^(1/2),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*sin(d*x+c))^m/(a+a*sec(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

integrate((e*sin(d*x + c))^m/sqrt(a*sec(d*x + c) + a), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*sin(d*x+c))^m/(a+a*sec(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

integral((e*sin(d*x + c))^m/sqrt(a*sec(d*x + c) + a), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (e \sin {\left (c + d x \right )}\right )^{m}}{\sqrt {a \left (\sec {\left (c + d x \right )} + 1\right )}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*sin(d*x+c))**m/(a+a*sec(d*x+c))**(1/2),x)

[Out]

Integral((e*sin(c + d*x))**m/sqrt(a*(sec(c + d*x) + 1)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*sin(d*x+c))^m/(a+a*sec(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate((e*sin(d*x + c))^m/sqrt(a*sec(d*x + c) + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (e\,\sin \left (c+d\,x\right )\right )}^m}{\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*sin(c + d*x))^m/(a + a/cos(c + d*x))^(1/2),x)

[Out]

int((e*sin(c + d*x))^m/(a + a/cos(c + d*x))^(1/2), x)

________________________________________________________________________________________